home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / areuh.tar / areuh / dump / Makefile < prev   
Makefile  |  1990-10-10  |  2KB  |  77 lines

  1. #
  2. # Makefile genere automatiquement par mkmf (le masque par defaut a ete adapte)
  3. #
  4.  
  5. CFLAGS          = -O
  6. LDFLAGS          =
  7. LIBS          =
  8. SYSLIBS          =
  9. BINDEST          = /usr/local/bin
  10.  
  11. #
  12. # S'il y a plus d'un programme, il faut aussi remplacer la cible
  13. # $(PROGRAM) par autant de cibles que necessaire.
  14. #
  15.  
  16. PROGRAM       = adp
  17.  
  18. SRCS          = adp.c
  19.  
  20. HDRS          = common.h \
  21.         err.h
  22.  
  23. EXTHDRS          = /usr/include/stdio.h
  24.  
  25. OBJS          = adp.o
  26.  
  27. MANDEST          = /usr/local/man/man1.Z
  28.  
  29. MANPAGES      = adp.1
  30.  
  31. #
  32. # Les cibles :
  33. #    all : compiler tout
  34. #    clean : effacer les .o et les core
  35. #    clobber : effacer tout ce qui peut etre regenere
  36. #    depend : recalculer toutes les dependances et les inserer ici
  37. #    install : installe le programme dans l'aborescence
  38. #    tags : cree les tags
  39. #
  40.  
  41. all:        $(PROGRAM)
  42.  
  43. $(PROGRAM):     $(OBJS) $(LIBS)
  44.         cc $(LDFLAGS) $(OBJS) $(LIBS) $(SYSLIBS) -o $(PROGRAM)
  45.  
  46. clean:;        rm -f $(OBJS) core
  47.  
  48. clobber:;    rm -f $(OBJS) $(PROGRAM) core tags
  49.  
  50. depend:;    mkmf ROOT=$(ROOT)
  51.  
  52. install:    $(PROGRAM)
  53.         -strip $(PROGRAM)
  54.         if [ $(BINDEST) != . ] ; \
  55.         then \
  56.             (cd $(BINDEST) ; rm -f $(PROGRAM)) ; \
  57.             cp $(PROGRAM) $(BINDEST) ; \
  58.             if [ "$(MANPAGES)" != none ] ; \
  59.             then \
  60.             (cd $(MANDEST) ; rm -f $(MANPAGES)) ; \
  61.             for i in $(MANPAGES) ; \
  62.             do \
  63.                 compress < $$i > $(MANDEST)/$$i ; \
  64.             done ; \
  65.             fi ; \
  66.         fi
  67.  
  68. tags:           $(HDRS) $(SRCS)
  69.         ctags $(HDRS) $(SRCS)
  70.  
  71. #
  72. # Dependances calculees automatiquement par mkmf.
  73. # Ne rien changer apres cette ligne !
  74. #
  75. ###
  76. adp.o: common.h /usr/include/stdio.h err.h
  77.